// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:17


// Source File Name:   q4.java

package com.zelix;

import java.awt.Component;
import java.util.StringTokenizer;
import javax.swing.JScrollPane;
import javax.swing.JViewport;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;


//            g2

public class q4 extends JScrollPane
    implements ChangeListener
{

    private static final String a;
    private static final String b = System.getProperty(z(z("8\rnoD$\tj}\003=\002")));
    private static final String c = System.getProperty(z(z("=\0376`\013?\t")));
    private boolean d;
    private Component e;
    private static String z[];

    public q4(Component component)
    {
        super(component);
        e = component;
        a();
    }

    private void a()
    {
        d = b();
        getViewport().addChangeListener(this);
    }

    private static boolean b()
    {
        boolean flag = g2.b;
        if(a.indexOf(z[1]) == -1 || c.indexOf(z[0]) == -1) goto _L2; else goto _L1
_L1:
        StringTokenizer stringtokenizer;
        int i;
        stringtokenizer = new StringTokenizer(b, ".");
        i = 0;
        if(!flag) goto _L4; else goto _L3
_L3:
        String s = stringtokenizer.nextToken();
        switch(i)
        {
        case 1: // '\001'
            try
            {
                int k = Integer.parseInt(s);
                return k == 3;
            }
            catch(NumberFormatException _ex)
            {
                return false;
            }

        case 0: // '\0'
            try
            {
                int j = Integer.parseInt(s);
                if(j > 1)
                    return false;
            }
            catch(NumberFormatException _ex)
            {
                return false;
            }
            // fall through

        default:
            i++;
            break;
        }
_L4:
        if(stringtokenizer.hasMoreTokens()) goto _L3; else goto _L2
_L2:
        return false;
    }

    public void stateChanged(ChangeEvent changeevent)
    {
        if(e != null)
            e.repaint();
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x6a;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 52;
                    break;
                case 1:
                    key = 108;
                    break;
                case 2:
                    key = 24;
                    break;
                case 3:
                    key =14;
                    break;
                default:
                    key = 106;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }


    static 
    {
        String as[] = new String[2];
        as[0] = z(z("\005\005vj\005%\037"));
        as[1] = z(z("\001\031v"));
        z = as;
        a = System.getProperty("8\rnoD$\tvj\005 ", z[1]);
    }
}